package classes;
import interfaces.*;
public class Beef extends Food implements meat,Runnable{
//runnable接口并发
    final String name = "牛肉";
    static int energy = 125;
    private int protein=25;
    private int heat=150;
    private int chole=81;

    public void Show_Protein(){
        System.out.println("蛋白质："+protein+"g");
    }
    public void Show_heat(){
        System.out.println("脂肪："+heat+"KJ");
    }
    public void Show_Chole(){
        System.out.println("胆固醇："+chole+"mg");
    }
    public void saying() {
        System.out.println("摄取"+name+"的营养是：");
        System.out.println("能量"+energy+"kj");
        Show_Protein();
        Show_heat();
        Show_Chole();
    }
    @Override
    public void run() {
    this.saying();
    }
}
